package com.jack.payment.dao.config;

import com.jack.payment.entity.generate.config.ConfigEmailModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ConfigEmailDao {
    /**
     * 获取全部邮箱配置信息
     * @return
     */
    List<ConfigEmailModel> getConfigEmailList();

    /**
     * 根据id获取指定邮箱基础信息
     * @param id
     * @return
     */
    ConfigEmailModel getAppointConfigEmail(@Param("id") String id);

    /**
     * 新增邮箱配置基础信息
     * @param configEmailModel
     * @return
     */
    boolean insertConfigEmailInfo(ConfigEmailModel configEmailModel);

    /**
     * 修改指定邮箱配置信息
     * @param configEmailModel
     * @return
     */
    boolean updateAppointConfigEmail(ConfigEmailModel configEmailModel);
}
